from selenium.webdriver.common.by import By
from basepage import baseobject

class search_method(baseobject):
    # 继承父类
    def __init__(self,driver,url):
        baseobject.__init__(self,driver,url)
        # 调用父类方法
        
    def open_browser(self):
        self.get()
    
        
    def element_input(self):
        self.input_text("python",By.ID,"kw")
    
    def element_click(self):
        self.left_click(By.ID,"su")
        

        
    def close_web(self):
        self.exit_browser()
        
        
